#ifndef __VOLATILE_H
#define __VOLATILE_H

#include "app_include.h"


typedef struct
{
	uint8_t queue[MAX_QUEUE_LENGTH][MAX_QUEUE_PACK_SIZE];
	uint8_t pack_size[MAX_QUEUE_LENGTH];
	uint8_t head;
	uint8_t tail;
	uint8_t empty_flag;
	uint8_t full_flag;
}volatile_queue_t;

void volatile_inqueue(void *arg,uint8_t *pack,uint32_t len);
uint32_t volatile_dequeue(void *arg,uint8_t *pack);
uint8_t is_volatile_queue_empty(void *arg);
uint32_t volatile_get_next_element_size(void *arg);
#endif

